package com.hl.sfzy.service;


import com.github.pagehelper.PageInfo;
import com.hl.sfzy.entity.Publicity;

import java.util.List;

public interface PublicityService {
    /**
     * 分页查询
     * @param pageNum
     * @param pageSize
     * @param publicity
     * @return
     */
    PageInfo<Publicity> findByPage(int pageNum, int pageSize, Publicity publicity);

    /**
     * 新增
     * @param publicity
     * @return
     */
    int add(Publicity publicity);

    /**
     * 修改
     * @param publicity
     * @return
     */
    int edit(Publicity publicity);
    /**
     * 删除
     * @param id
     * @return
     */
    int removeByPrimaryKey(Long id);
    /**
     * 根据id查询
     * @param id
     * @return
     */
    Publicity findById(Long id);

    int deleteBatch(List<Long> ids);
}
